package com.lottery.material.controller.admin.web;

import com.lottery.material.controller.base.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Description：访问主页和欢迎页（访问后台）
 * Created by 朱正磊 on 2019-03-25 17:07
 */
@Controller
public class AdminIndexController extends BaseController {

    /**
     * description：访问主页
     * user 朱正磊
     * time 2019-03-26 10:03
     * @return 返回模型视图（主页）
     */
    @GetMapping(value = {"/admin/", "/admin/index"})
    public ModelAndView index() {
        return new ModelAndView("admin/index");
    }

    /**
     * description：访问欢迎页
     * user 朱正磊
     * time 2019-03-26 10:04
     * @return 返回模型视图（欢迎页）
     */
    @GetMapping("/admin/welcome")
    public ModelAndView welcome() {
        return new ModelAndView("admin/welcome");
    }

}
